import time


for x in range(10):
    print(x)
    time.sleep(1)   # 让程序睡眠一秒